﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SysUserSearch.aspx.cs" Inherits="User_SysUserSearch" %>
<%@ Import Namespace="WX.WMS.DataModel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>系统用户管理</title>
    
<link href="../css/base.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">


</script>
    <style type="text/css">
        .style1
        {
            FONT-WEIGHT: bolder;
            FONT-SIZE: 18pt;
            COLOR: black;
            LINE-HEIGHT: 150%;
            FONT-FAMILY: 楷体_GB2312;
            TEXT-DECORATION: underline;
            height: 50px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div  style=" margin:0 auto; text-align:center;">
<%--        <asp:SiteMapPath ID="SiteMapPath1" runat="server">
        </asp:SiteMapPath>--%>
        <br />
      <table width="998px" border="0">
          <tr>
              <td class="style1" align="center">
                  用户基本维护</td>
          </tr>
          <tr>
              <td align="left">
                  <input id="Button1" type="button" onclick="window.location.replace('SysUserManager.aspx?action=add')"  value="添加用户" /></td>
          </tr>
  <tr>
    <td>
    <asp:GridView ID="SearchResult" runat="server" AutoGenerateColumns="False" 
            BackColor="White" AllowPaging="true"  PageSize="10"
            BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
            Width="100%" DataKeyNames="ID" 
            onpageindexchanging="SearchResult_PageIndexChanging"   >
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <Columns>
                <asp:BoundField DataField="User" HeaderText="帐号" SortExpression="User" />
                 <asp:TemplateField HeaderText="角色名" SortExpression="T_SYS_ROLE.NAME">
                 <ItemTemplate>
                 <%# ((WX.WMS.DataModel.T_SYS_USER)Container.DataItem).T_SYS_ROLE.NAME%>
                 </ItemTemplate>                 
                 </asp:TemplateField>
                <asp:BoundField DataField="Name" HeaderText="姓名" SortExpression="Name" />
                 <asp:TemplateField HeaderText="状态" SortExpression="Status">
                 <ItemTemplate>
                 <%# ((WX.WMS.DataModel.T_SYS_USER)Container.DataItem).STATUS==1?"正常使用":"停止使用"%>
                 </ItemTemplate>                 
                 </asp:TemplateField>                
                <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="SysUserManager.aspx?action=edit&amp;ID={0}"
                    HeaderText="编辑" Text="&lt;img border=0 src=../images/Edit.gif /&gt;">
                    <ItemStyle Width="30px" />
                </asp:HyperLinkField>
                <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="SysUserSearch.aspx?action=del&amp;ID={0}"
                    HeaderText="停用" Text="&lt;img border=0 src=../images/Close.gif /&gt;">
                    <ItemStyle Width="30px" />
                </asp:HyperLinkField>
            </Columns>
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <HeaderStyle BackColor="#E2F3FA" Font-Bold="True" ForeColor="Black" />
        </asp:GridView>
        <div class="pageLink" id="pageLink">
            </div>
    </td>
  </tr>
  <tr>
    <td style="height: 17px" align="center">&nbsp;
    </td>
  </tr>
</table>
    
    </div>
    </form>
</body>
</html>
